package com.jml.责任链模式.企业分控系统.respon.handler;


public abstract class GatewayHandler {
    /**
     * 每个不同的处理器 处理的业务逻辑
     */
    public abstract void doService();

    protected GatewayHandler nextGatewayHandler;


    public GatewayHandler() {

    }

    public GatewayHandler(GatewayHandler nextGatewayHandler) {
        this.nextGatewayHandler = nextGatewayHandler;
    }


    public void setNextGatewayHandler(GatewayHandler nextGatewayHandler) {
        this.nextGatewayHandler = nextGatewayHandler;
    }
}
